import 'dart:typed_data';

import 'package:bluetooth_protocols_parser_plugin/src/tools/utils.dart';
import 'package:flutter/foundation.dart';

void main() {
  // 随机数
  Uint8List random = Uint8List.fromList([0x01, 0x02, 0x03, 0x04]);
  // 加密随机数
  Uint8List encryptRandom = Utils.int2Uint8List(Utils.calCrc32(random));
  debugPrint('Random: $random');
  debugPrint('Encrypt Random: $encryptRandom');
}
